import { defineComponent } from 'vue'
export default function createCustomComponent(name, asyncComponent) {
  return defineComponent({
    name: name,
    components: {
      AsyncComponent: asyncComponent
    },
    setup() {
      return () => {
        return <AsyncComponent />
      }
    }
  })
}
